package com.spa.infrastructure.service.douyin.param;

import lombok.Data;

import java.util.List;
import java.util.Map;

@Data
public class GoodsProductSaveParam {

    private Product product;

    private Sku sku;

    private String account_id;

    public static class Product {

        private String product_id;

        private String out_id;

        private String spu_id;

        private String product_name;

        private String category_full_name;

        private String category_id;

        private String product_type;

        private String product_sub_type;

        private String biz_line;

        private String account_name;

        private String sold_start_time;

        private String sold_end_time;

        private String out_url;

        private List<Poi> pois;

        private Map<String, String> attr_key_value_map;

        private ProductExt product_ext;
    }

    public static class Poi {

        private String poi_id;

        private String supplier_ext_id;

    }

    public static class ProductExt {

        private boolean auto_online;

        private TestExtra test_extra;
    }

    public static class TestExtra {

        private List<String> uids;

        private boolean test_flag;
    }

    public static class Sku {

        private String sku_id;

        private String sku_name;

        private String origin_amount;

        private String actual_amount;

        private String out_sku_id;

        private int status;

        private Stock stock;

        private Map<String, String> attr_key_value_map;

        private List<String> bind_skus;
    }

    public static class Stock {

        private int limit_type;

        private int stock_qty;
    }
}
